package com.awonsome.admin.api;

import com.awonsome.admin.api.dto.OAuth2ClientDTO;
import com.awonsome.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yangdejun
 * @date 2022/1/23 12:44
 */
@FeignClient(value = "awonsome-admin", contextId = "oauth-client")
public interface OAuthClientFeignClient {

    @GetMapping(value = "/api/v1/oauth-clients/getOAuth2ClientById")
    Result<OAuth2ClientDTO> getOAuth2ClientById(@RequestParam String clientId);

}
